<?php
	header('Access-Control-Allow-Origin:*');
    header("Access-Control-Allow-Origin:http://192.168.206.100");
    

    if(isset($_GET['u_id'])){
        require "./extends/config.php";
        require "./extends/Model.class.php";
        $model = new Model('b_user');
        $id = $_GET['u_id'];
        $selectResult = $model->where("u_id= '$id'")->select();

        if($selectResult){
            $result['code'] = 0;
            $result['data'] = $selectResult;
            echo json_encode($result);
        }else{
            $result['code'] = 1;
            $result['data'] = "发生错误";
            echo json_encode($result);
        }
    }else{
        $result['code'] = 2;
        $result['data'] = "无参数";
        echo json_encode($result);
    }
?>